package com.linln.modules.system.domain;
import org.springframework.data.annotation.CreatedDate;
import org.springframework.data.jpa.domain.support.AuditingEntityListener;

import javax.persistence.*;
import java.util.Date;
import java.sql.Timestamp;
import java.util.Objects;

@Entity
@Table(name = "Patient_Parents_Situation", schema = "dbo", catalog = "WQR")
@EntityListeners(AuditingEntityListener.class)
public class PatientParentsSituationEntity {
    private Integer id;
    private String jkqk;
    private String sjycd;
    private String sfhj;
    private String sfyj;
    private String fmczjb;
    private String qttbxdjmjkqk;
    private String zyh;
    @CreatedDate
    private Date createDate;
    private String bah;
    private String fqnl;
    private String fqnldw;
    private String fqhj;
    private String fqczjb;
    private String fqsjycd;
    private String mqnl;
    private String mqnldw;
    private String mqhj;
    private String mqczjb;
    private String mqsjycd;
    private String xjkqk;
    private String djkqk;
    private String jjkqk;
    private String mjkqk;
    private String fqjkqk;
    private String mqjkqk;
    private String mqyj;
    private Date cyrq;

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "id", nullable = false)
    public Integer getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    @Basic
    @Column(name = "jkqk", nullable = true, length = 50)
    public String getJkqk() {
        return jkqk;
    }

    public void setJkqk(String jkqk) {
        this.jkqk = jkqk;
    }

    @Basic
    @Column(name = "sjycd", nullable = true, length = 50)
    public String getSjycd() {
        return sjycd;
    }

    public void setSjycd(String sjycd) {
        this.sjycd = sjycd;
    }

    @Basic
    @Column(name = "sfhj", nullable = true, length = 2)
    public String getSfhj() {
        return sfhj;
    }

    public void setSfhj(String sfhj) {
        this.sfhj = sfhj;
    }

    @Basic
    @Column(name = "sfyj", nullable = true, length = 2)
    public String getSfyj() {
        return sfyj;
    }

    public void setSfyj(String sfyj) {
        this.sfyj = sfyj;
    }

    @Basic
    @Column(name = "fmczjb", nullable = true, length = 2000)
    public String getFmczjb() {
        return fmczjb;
    }

    public void setFmczjb(String fmczjb) {
        this.fmczjb = fmczjb;
    }

    @Basic
    @Column(name = "qttbxdjmjkqk", nullable = true, length = 2000)
    public String getQttbxdjmjkqk() {
        return qttbxdjmjkqk;
    }

    public void setQttbxdjmjkqk(String qttbxdjmjkqk) {
        this.qttbxdjmjkqk = qttbxdjmjkqk;
    }

    @Basic
    @Column(name = "zyh", nullable = true, length = 20)
    public String getZyh() {
        return zyh;
    }

    public void setZyh(String zyh) {
        this.zyh = zyh;
    }

    @Basic
    @Column(name = "createDate", nullable = false)
    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    @Basic
    @Column(name = "bah", nullable = false, length = 20)
    public String getBah() {
        return bah;
    }

    public void setBah(String bah) {
        this.bah = bah;
    }

    @Basic
    @Column(name = "fqnl", nullable = true, length = 20)
    public String getFqnl() {
        return fqnl;
    }

    public void setFqnl(String fqnl) {
        this.fqnl = fqnl;
    }

    @Basic
    @Column(name = "fqnldw", nullable = true, length = 20)
    public String getFqnldw() {
        return fqnldw;
    }

    public void setFqnldw(String fqnldw) {
        this.fqnldw = fqnldw;
    }

    @Basic
    @Column(name = "fqhj", nullable = true, length = 20)
    public String getFqhj() {
        return fqhj;
    }

    public void setFqhj(String fqhj) {
        this.fqhj = fqhj;
    }

    @Basic
    @Column(name = "fqczjb", nullable = true, length = 2000)
    public String getFqczjb() {
        return fqczjb;
    }

    public void setFqczjb(String fqczjb) {
        this.fqczjb = fqczjb;
    }

    @Basic
    @Column(name = "fqsjycd", nullable = true, length = 50)
    public String getFqsjycd() {
        return fqsjycd;
    }

    public void setFqsjycd(String fqsjycd) {
        this.fqsjycd = fqsjycd;
    }

    @Basic
    @Column(name = "mqnl", nullable = true, length = 20)
    public String getMqnl() {
        return mqnl;
    }

    public void setMqnl(String mqnl) {
        this.mqnl = mqnl;
    }

    @Basic
    @Column(name = "mqnldw", nullable = true, length = 20)
    public String getMqnldw() {
        return mqnldw;
    }

    public void setMqnldw(String mqnldw) {
        this.mqnldw = mqnldw;
    }

    @Basic
    @Column(name = "mqhj", nullable = true, length = 20)
    public String getMqhj() {
        return mqhj;
    }

    public void setMqhj(String mqhj) {
        this.mqhj = mqhj;
    }

    @Basic
    @Column(name = "mqczjb", nullable = true, length = 2000)
    public String getMqczjb() {
        return mqczjb;
    }

    public void setMqczjb(String mqczjb) {
        this.mqczjb = mqczjb;
    }

    @Basic
    @Column(name = "mqsjycd", nullable = true, length = 50)
    public String getMqsjycd() {
        return mqsjycd;
    }

    public void setMqsjycd(String mqsjycd) {
        this.mqsjycd = mqsjycd;
    }

    @Basic
    @Column(name = "xjkqk", nullable = true, length = 2000)
    public String getXjkqk() {
        return xjkqk;
    }

    public void setXjkqk(String xjkqk) {
        this.xjkqk = xjkqk;
    }

    @Basic
    @Column(name = "djkqk", nullable = true, length = 2000)
    public String getDjkqk() {
        return djkqk;
    }

    public void setDjkqk(String djkqk) {
        this.djkqk = djkqk;
    }

    @Basic
    @Column(name = "jjkqk", nullable = true, length = 2000)
    public String getJjkqk() {
        return jjkqk;
    }

    public void setJjkqk(String jjkqk) {
        this.jjkqk = jjkqk;
    }

    @Basic
    @Column(name = "mjkqk", nullable = true, length = 2000)
    public String getMjkqk() {
        return mjkqk;
    }

    public void setMjkqk(String mjkqk) {
        this.mjkqk = mjkqk;
    }

    @Basic
    @Column(name = "fqjkqk", nullable = true, length = 2000)
    public String getFqjkqk() {
        return fqjkqk;
    }

    public void setFqjkqk(String fqjkqk) {
        this.fqjkqk = fqjkqk;
    }

    @Basic
    @Column(name = "mqjkqk", nullable = true, length = 2000)
    public String getMqjkqk() {
        return mqjkqk;
    }

    public void setMqjkqk(String mqjkqk) {
        this.mqjkqk = mqjkqk;
    }

    @Basic
    @Column(name = "cyrq", nullable = true)
    public Date getCyrq() {
        return cyrq;
    }

    public void setCyrq(Date cyrq) {
        this.cyrq = cyrq;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        PatientParentsSituationEntity that = (PatientParentsSituationEntity) o;
        return id == that.id && Objects.equals(jkqk, that.jkqk) && Objects.equals(sjycd, that.sjycd) && Objects.equals(sfhj, that.sfhj) && Objects.equals(sfyj, that.sfyj) && Objects.equals(fmczjb, that.fmczjb) && Objects.equals(qttbxdjmjkqk, that.qttbxdjmjkqk) && Objects.equals(zyh, that.zyh) && Objects.equals(createDate, that.createDate) && Objects.equals(bah, that.bah) && Objects.equals(fqnl, that.fqnl) && Objects.equals(fqnldw, that.fqnldw) && Objects.equals(fqhj, that.fqhj) && Objects.equals(fqczjb, that.fqczjb) && Objects.equals(fqsjycd, that.fqsjycd) && Objects.equals(mqnl, that.mqnl) && Objects.equals(mqnldw, that.mqnldw) && Objects.equals(mqhj, that.mqhj) && Objects.equals(mqczjb, that.mqczjb) && Objects.equals(mqsjycd, that.mqsjycd) && Objects.equals(xjkqk, that.xjkqk) && Objects.equals(djkqk, that.djkqk) && Objects.equals(jjkqk, that.jjkqk) && Objects.equals(mjkqk, that.mjkqk) && Objects.equals(fqjkqk, that.fqjkqk) && Objects.equals(mqjkqk, that.mqjkqk)&& Objects.equals(mqjkqk, that.mqyj);
    }

    @Override
    public int hashCode() {
        return Objects.hash(id, jkqk, sjycd, sfhj, sfyj, fmczjb, qttbxdjmjkqk, zyh, createDate, bah, fqnl, fqnldw, fqhj, fqczjb, fqsjycd, mqnl, mqnldw, mqhj, mqczjb, mqsjycd, xjkqk, djkqk, jjkqk, mjkqk, fqjkqk, mqjkqk,mqyj);
    }

    @Basic
    @Column(name = "mqyj", nullable = true, length = 20)
    public String getMqyj() {
        return mqyj;
    }

    public void setMqyj(String mqyj) {
        this.mqyj = mqyj;
    }
}
